package com.qinsoft.business.module.dao;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.qinsoft.business.module.bean.Module;
import com.qinsoft.frame.messages.WriteMessage;
import com.qinsoft.frame.utils.DbUtil;


public class ModuleDao
{

    public static List<Module> select()
    {
        SqlSession sqlMap = null;
        List<Module> list = new ArrayList<Module>();
        try
        {
            //获取连接对象
            sqlMap= DbUtil.getSqlMapClient();
            //执行查询方法
            list = sqlMap.selectList("com.qinsoft.business.module.sqlMap.module.select");
        } 
        catch (Exception e) 
        {
            WriteMessage.WriteErrorLog("com.qinsoft.business.module.dao.ModuleDao.select()", e);
        }
        finally
        {
            sqlMap.close();
        }
        return list;
    }
}
